import React from 'react';
import ReactDOM from 'react-dom';
import SearchBodyPC from './component/SearchBody';
import SearchCertMobile from './component/SearchCertMobile';
// import routes from "./route/route"
import { BrowserRouter, Switch, Route, NavLink } from 'react-router-dom'

import Util from './lib/commonJs';

import './lib/bootstrap/bootstrap.css';
import './lib/awesome/css/font-awesome.min.css';
import './style/index.less';
import './style/pop.less';

ReactDOM.render(
    <BrowserRouter>
        {
            Util.isMobile()?<SearchCertMobile/>:<SearchBodyPC/>
        }
    </BrowserRouter>
    , document.getElementById('app')
);


/*
ReactDOM.render(
    <BrowserRouter>
        <div className="App">
            <App />
            <Switch>
                {
                    routes.map((route,index) => (
                        <Route key={index} path={route.path} component={route.component} exact={route.exact} />
                    ))
                }
            </Switch>
        </div>
    </BrowserRouter>,
    document.getElementById('app')
);
*/
